lib: Fix a bad call to g_file_get_child
authorValentin David <me@valentindavid.com>
Tue, 2 Nov 2021 18:49:04 +0000 (19:49 +0100)
committerValentin David <me@valentindavid.com>
Wed, 3 Nov 2021 20:40:35 +0000 (21:40 +0100)
commitadc097a2edb1b7aaf5604043b4b1d5bd6ef8a308
tree0778e9758c4a507a884ba5fdc513d3e743e4e869
parent800289a8dbc8222c9e5da86f9f60eaf5dcf6201f
lib: Fix a bad call to g_file_get_child

In Glib, since commit 3a6e8bc8876e149c36b6b14c6a25a718edb581ed,
`g_file_get_child` does not accept absolute path as paramater anymore.

The broken assertion was encountered during `ostree admin deploy`
command for the checkout of subpath `etc`.

Example of error log:
```
(ostree admin deploy:1640): GLib-GIO-CRITICAL **: 03:42:00.570: g_file_get_child: assertion '!g_path_is_absolute (name)' failed

(ostree admin deploy:1640): GLib-GIO-CRITICAL **: 03:42:00.570: g_file_query_info: assertion 'G_IS_FILE (file)' failed
**
OSTree:ERROR:src/ostree/ot-main.c:232:ostree_run: assertion failed: (success || error)
Bail out! OSTree:ERROR:src/ostree/ot-main.c:232:ostree_run: assertion failed: (success || error)
```
src/libostree/ostree-repo-checkout.c